package self.hoy.demo.grainmall.product.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import self.hoy.demo.common.ServiceProviderName;
import self.hoy.demo.common.to.es.SpuEsModel;
import self.hoy.demo.common.utils.R;

import java.util.List;

/**
 * @author hyh
 * @date 2020/7/19
 */
@FeignClient(ServiceProviderName.SEARCH)
public interface SearchFeignService {

    @PostMapping("/search/product")
    R productStausUp(@RequestBody List<SpuEsModel> models);
}
